﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc; 

namespace MyCompanyName.AbpZeroTemplate.Web.Areas.Prm.Controllers
{
    public class SubstanceController : Controller
    {
        //
        // GET: /Prm/Substance/
        public ActionResult Index()
        {
            return View();
        }


        public ActionResult PostPngByMol(string mol)
        {
            string RemoteServerUrl = System.Configuration.ConfigurationManager.AppSettings["RemotingEln.RemoteServerUrl"];
            Mp.Eln.Remoting.Service.IFactory _builder =
                 (Mp.Eln.Remoting.Service.IFactory)Activator.GetObject(typeof(Mp.Eln.Remoting.Service.IFactory),
                 RemoteServerUrl);

            Mp.Eln.Remoting.Service.Molecular aa = _builder.CreateMolInstance().GetMolecular(mol);
           return Json(aa,JsonRequestBehavior.AllowGet);
        }
	}
}